//
// Created by Administrator on 2021/5/21.
//
#include "iostream"
using namespace std;

int main(){

    //三只小猪称体重，判断哪只最终
    //1.创建3只小猪体重
    int pig1 = 0;
    int pig2 = 0;
    int pig3 = 0;

    //2.让用户输入3只小猪的重量
    cout << "Please input pig1's weight:" << endl;
    cin >> pig1;

    cout << "Please input pig2's weight:" << endl;
    cin >> pig2;

    cout << "Please input pig3's weight:" << endl;
    cin >> pig3;

    cout << "pig1's weight:" << pig1 << endl;
    cout << "pig2's weight:" << pig2 << endl;
    cout << "pig3's weight:" << pig3 << endl;

    //3.判断哪只最重
    if (pig1 > pig2){
        if (pig1 > pig3){
            cout << "pig1 is bigger!" << endl;
        } else{
            cout << "pig3 is bigger!" << endl;
        }

    }else{
        if (pig2 > pig3){
            cout << "pig2 is bigger!" << endl;
        }else{
            cout << "pig3 is bigger!" <<endl;
        }
    }

    system("pause");

    return 0;
}
